home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15244 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.polymtl.ca!news
  2. From: Pierre Ferland <pierre@meca.polymtl.ca>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: gnu c++
  5. Date: Thu, 04 Apr 1996 07:47:13 -0500
  6. Organization: Center for Applied Research on Polymers
  7. Message-ID: <3163C4D1.41C6@meca.polymtl.ca>
  8. References: <3162F6C7.4372E97A@arbornet.org>
  9. NNTP-Posting-Host: crasp.meca.polymtl.ca
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.01 (X11; I; AIX 2)
  14.  
  15. anthony wrote:
  16. > does anyone know if g++ does templates?  i've heard some people say they
  17. > had problems, but never heard any answers.
  18. > thanks for any comments.
  19. > anthony
  20.  
  21.  
  22. Well, it seems that g++ actually implements templates.  
  23. You face the choice of the instantiation model, and within
  24. the solutions proposed you'll find #pragmas and compiling
  25. options (I like none of them cause we use different compilers
  26. even on a same platform, and this tends to complexify both sources
  27. and makefiles).  
  28.  
  29. Some bugs have been reported.  You may check the following URL
  30. http://www.cygnus.com/misc/g++FAQ.html#SEC41
  31.  
  32. The one that's precisely driving me mad is the illegal
  33. instantiation when the compiler meets a pointer to a template
  34. instance.  
  35.  
  36. They say that the next release (2.8) will implement automatic
  37. instantiation and correct some non standard behaviors.
  38.  
  39. If you need more doc I can send you a postscript file
  40. of the ``templates'' section in gcc 2.7.2 manuals.
  41.  
  42.  
  43. Pierre Ferland
  44. RTMFLOT Project Manager
  45.